#include <QCoreApplication>
#include <iostream>
#include <math.h>

using namespace std;

int main()
{

    int a,ed,des,sot;
    cout <<"Vvedite chislo A: \n";
    cin >>a;
    sot=a/100;

    des=a/10%10;

    ed=a%100%10;
    cout << des << sot << ed <<endl;


    return 0;
}
